Parent Topic: Resampling Example

Bilinear Interpolation
Resampling kernel (k) has the dimensions of 2 pixels by 2 scanlines.

      0   1  
    +---+---+
  0 | X |   |
    +---+---+
  1 |   |   |
    +---+---+
Process for the resample window:

  row[0] = BilinearInterpolation( (1.0 - Xdistance), k[0,0],
                                   Xdistance       , k[0,1] )
  row[1] = BilinearInterpolation( (1.0 - Xdistance), k[1,0],
                                   Xdistance       , k[1,1] )
  output = BilinearInterpolation( (1.0 - Ydistance), row[0],
                                   Ydistance       , row[1] )
Where the resampling function is:

 BilinearInterpolation( distance0, f0, distance1, f1 ) 
 {
   return(  f0 * distance0
          + f1 * distance1 );
 }

Parent Topic: Resampling Example
About PCI Help Gateway